package com.movitech.mobile.cz.base.sys.bizcontroller;


import com.movitech.mobile.cz.base.modules.controller.RestReturnResult;
import com.movitech.mobile.cz.base.sys.entity.ext.ExtSysStandardArea;
import com.movitech.mobile.cz.base.sys.service.SysStandardAreaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 * SysStandardArea 前端控制器
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-09-04
 */
@RestController
@RequestMapping("/v1/sysStandardArea")
@Api(value = "地区码表基础操作接口", description = "地区码表基础操作接口")
public class SysStandardAreaController {
    @Autowired
    private SysStandardAreaService sysStandardAreaService;

    @GetMapping("/selectProAndCities")
    @ApiOperation(
            value = "获取省份和其下的城市",
            notes = "获取省份和其下的城市",
            response = ExtSysStandardArea.class
    )
    public RestReturnResult selectProAndCities() {
        RestReturnResult restResult = RestReturnResult.success();
        restResult.setData(sysStandardAreaService.selectProAndcities());
        return restResult;
    }


}

